<?php
class ApiFac {
	public static function getApi($type) {
		require_once FRAMEWORK_API_ROOT . "{$type}/requires.php";
		switch($type) {
			case 'qq':
				return new QQApi();
			case 'sina':
				return new SINAApi();
			case 'facebook':
				return new FacebookApi();
			case 'twitter':
				return new TwitterApi();
			case 'renren':
				return new RenrenApi();
		}
	}
}
?>